Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust circuit breaker benchmarks #622

Merged
merged 6 commits into from
Jun 30, 2023

Conversation

dmoka
Copy link
Contributor

@dmoka dmoka commented Jun 22, 2023

Processed TODOs to split up on_initialize benchmarking into trade and liquidity separately

NOTE: The bench weight result of on_finalize changed a lot, not sure where it comes from as it was benchmarked now on the reference machine.

@dmoka dmoka requested a review from Roznovjak June 22, 2023 10:47
@github-actions
Copy link

github-actions bot commented Jun 22, 2023

Crate versions that have been updated:

  • pallet-circuit-breaker: v1.1.12 -> v1.1.13
  • common-runtime: v102.4.0 -> v102.5.0

Runtime version has not been increased.

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch coverage: 83.33% and project coverage change: +0.03 🎉

Comparison is base (9a6cc6b) 64.63% compared to head (1006107) 64.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #622      +/-   ##
==========================================
+ Coverage   64.63%   64.66%   +0.03%     
==========================================
  Files         130      130              
  Lines        9450     9459       +9     
==========================================
+ Hits         6108     6117       +9     
  Misses       3342     3342              
Impacted Files Coverage Δ
runtime/common/src/weights/circuit_breaker.rs 71.42% <71.42%> (+2.19%) ⬆️
pallets/circuit-breaker/src/benchmarking.rs 100.00% <100.00%> (ø)
runtime/common/src/adapters.rs 78.37% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Roznovjak
Copy link
Contributor

Processed TODOs to split up on_initialize benchmarking into trade and liquidity separately

NOTE: The bench weight result of on_finalize changed a lot, not sure where it comes from as it was benchmarked now on the reference machine.

It looks like the weight was wrong. I checked other benchmarks/weights and 1 nanosecond ~= 1_000 weight. So the weight should be correct now.

@Roznovjak Roznovjak assigned Roznovjak and dmoka and unassigned Roznovjak Jun 29, 2023
@mrq1911 mrq1911 merged commit 35c131b into master Jun 30, 2023
8 checks passed
@jak-pan jak-pan deleted the feat/adjust-circuit-breaker-bench branch February 22, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants